package com.macro.mall.portal.dto.ums;

import com.macro.mall.common.api.dto.BaseRequestDto;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * class
 *
 * @author xuyanjun
 * @date 2019-12-28
 */
@Valid
@Getter
@Setter
@ToString
@ApiModel(description = "用户提现Dto")
public class MemberWithdrawReqDto extends BaseRequestDto {

    @DecimalMin(value = "10", message = "要提现的金额不能为空。")
    @NotNull(message = "要提现的金额不能为空。")
    private BigDecimal amount;

    @NotBlank(message = "支付宝账号不能为空")
    private String alipayAccount;

    @NotBlank(message = "支付宝珍视姓名不能为空。")
    private String alipayRealname;
}
